package com.bryce.springcloud.service;

import com.bryce.springcloud.entities.CommonResult;
import com.bryce.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author Bryce
 * @create 2021-04-12 19:50
 * @Description
 */
@Component
public class PaymentFallbackService implements  PaymentService{
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444,"服务降级返回，----PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}
